import App from './App'
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import store from './store/vuex.js'
import CommonUtil from '@/utils/commonUtil.js';
import globalMixins from '@/utils/globalMixins.js';


Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$Util = CommonUtil;
Vue.mixin(globalMixins)

var WX_ASSETS = '/mobile/teacher';

// #ifdef MP-WEIXIN
var LocalTestServer = 'http://localhost:8081';

var API_PREFIX = 'https://xjspx.jsjyjy.net';

// API_PREFIX = 'http://localhost:8081';
// WX_ASSETS = '/wxAssets';

// #endif

// #ifdef H5
 var API_PREFIX = window.$Config.API_PREFIX || location.origin;
// #endif

Vue.prototype.API_PREFIX = API_PREFIX;
Vue.prototype.WX_ASSETS = WX_ASSETS;
Vue.prototype.LocalTestServer = LocalTestServer;


const app = new Vue({
    ...App,
		store
})

app.$mount()
global.vueApp = app;